package in.smartbillpay.web.validators;

import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import in.smartbillpay.web.models.State;

@Component
public class DistrictValidator implements Validator {

	public boolean supports(Class<?> clazz) {
		return State.class.isAssignableFrom(clazz);
	}

	public void validate(Object target, Errors errors) {
		// Add the custom validation logic here
	}

}
